/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.adv.entity;

import javax.validation.constraints.NotNull;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.sys.entity.Area;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 企业广告奖励配置Entity
 * @author 罗天文
 * @version 2018-03-20
 */
public class HkEnterpriseAdvReward extends DataEntity<HkEnterpriseAdvReward> {
	
	private static final long serialVersionUID = 1L;
	private HkEnterpriseAdv enterprise;		// 企业广告id
	private Date beginDate;		// 开始时间
	private Date endDate;		// 结束时间
	private Area country;		// 国家
	private Area province;		// 省
	private Area city;		// 市
	private Date beginBeginDate;		// 开始 开始时间
	private Date endBeginDate;		// 结束 开始时间
	private List<HkEnterpriseAdvGoods> hkEnterpriseAdvGoodsList = Lists.newArrayList();		// 子表列表
	private List<HkEnterpriseAdvIntegral> hkEnterpriseAdvIntegralList = Lists.newArrayList();		// 子表列表
	
	public HkEnterpriseAdvReward() {
		super();
	}

	public HkEnterpriseAdvReward(String id){
		super(id);
	}

	@NotNull(message="企业广告id不能为空")
	public HkEnterpriseAdv getEnterprise() {
		return enterprise;
	}

	public void setEnterprise(HkEnterpriseAdv enterprise) {
		this.enterprise = enterprise;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	
	public Area getCountry() {
		return country;
	}

	public void setCountry(Area country) {
		this.country = country;
	}
	
	public Area getProvince() {
		return province;
	}

	public void setProvince(Area province) {
		this.province = province;
	}
	
	public Area getCity() {
		return city;
	}

	public void setCity(Area city) {
		this.city = city;
	}
	
	public Date getBeginBeginDate() {
		return beginBeginDate;
	}

	public void setBeginBeginDate(Date beginBeginDate) {
		this.beginBeginDate = beginBeginDate;
	}
	
	public Date getEndBeginDate() {
		return endBeginDate;
	}

	public void setEndBeginDate(Date endBeginDate) {
		this.endBeginDate = endBeginDate;
	}
		
	public List<HkEnterpriseAdvGoods> getHkEnterpriseAdvGoodsList() {
		return hkEnterpriseAdvGoodsList;
	}

	public void setHkEnterpriseAdvGoodsList(List<HkEnterpriseAdvGoods> hkEnterpriseAdvGoodsList) {
		this.hkEnterpriseAdvGoodsList = hkEnterpriseAdvGoodsList;
	}
	public List<HkEnterpriseAdvIntegral> getHkEnterpriseAdvIntegralList() {
		return hkEnterpriseAdvIntegralList;
	}

	public void setHkEnterpriseAdvIntegralList(List<HkEnterpriseAdvIntegral> hkEnterpriseAdvIntegralList) {
		this.hkEnterpriseAdvIntegralList = hkEnterpriseAdvIntegralList;
	}
}